/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-08-11 08:51:19
 * @LastEditTime : 2023-08-11 08:57:36
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\TwoRouter\Device.jsx
 * @Description  :
 */

import { API_LIST } from '../../../Api/Api'
import { OpenThrTouter } from '../Common/options'

export const Device = async ({ OptionsEvent, oneData, Permission, actionRef, ClientData }) => {
    let dataList = {
        hideInSearch: true,
        pageSize: 10,
        params: {},
        get: API_LIST([oneData.uuid])['getDeviceCameras'],
        options: [
            <OpenThrTouter
                title="新增摄像头"
                type="primary"
                icon="add"
                modal="SelectModal"
                OptionsEvent={OptionsEvent}
                other={{
                    page: 'Device',
                    actionRef,
                    Permission,
                    twoData: oneData,
                }}
            />,
        ],
        columns: [{ title: '摄像头名称', dataIndex: 'cameraName', search: false }],
    }
    return dataList
}
